package com.sharedprint.system.merchant.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sharedprint.system.merchant.mapper.MerchantUserMapper;
@Service
public class MerchantUserServiceImpl implements MerchantUserService {
@Autowired
private MerchantUserMapper merchantusermapper;
	@Override
	public int findCount(Map<String, Object> searchMap) {
		// TODO Auto-generated method stub
		return merchantusermapper.findCount(searchMap);
	}

	@Override
	public List<Map<String, Object>> findPageList(Map<String, Object> searchMap) {
		// TODO Auto-generated method stub
		return merchantusermapper.findPageList(searchMap);
	}

	@Override
	public int delete(int MerUser_ID) {
		// TODO Auto-generated method stub
		return merchantusermapper.deleteByPrimaryKey(MerUser_ID);
	}

	@Override
	public int resetLoginPwd(int MerUser_ID) {
		// TODO Auto-generated method stub
		return merchantusermapper.updateUpwd(MerUser_ID);
	}

}
